package ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        Season[] seasons=Season.values();
        for (int i = 0; i < seasons.length; i++) {
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonName());
            System.out.println(seasons[i].getSeasonDesc());
        }
        Season s=Season.SPRING;//获取一个对象
        switch (s){
            case SPRING:
                System.out.println();
            case SUMMER:
                System.out.println();

        }

    }
      /*  Season s=Season.SUMMER;
        System.out.println(s.getSeasonName());
    }

       */
}
